package com.wwj.auction.login.service;

import com.wwj.auction.login.entity.BuyRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wwj.auction.login.entity.vo.BuyRecordVo;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author wwj
 * @since 2021-08-31
 */
public interface BuyRecordService extends IService<BuyRecord> {

    /**
     * 创建买家的购买记录
     *
     * @param userId
     * @param shopId
     * @param orderNo
     */
    void create(Integer userId, Integer shopId, String orderNo);

    /**
     * 查询买家的购买记录
     *
     * @param userId
     * @return
     */
    List<BuyRecordVo> get(Integer userId);

    /**
     * 操作成功
     * @param id
     */
    void status(Integer id);
}
